package com.people.core.validator.annotation;

import com.people.core.validator.valid.CollectionHasNoEmptyVlaueValidValidator;
import com.people.core.validator.valid.StringStatusValueValidator;

import javax.validation.Constraint;
import javax.validation.Payload;
import java.lang.annotation.*;

import static java.lang.annotation.RetentionPolicy.RUNTIME;

/**
 * 状态值校验，校验参数
 *
 * @author zhenglin
 * @date 2022/3/22 10:42
 */
@Documented
@Constraint(validatedBy = CollectionHasNoEmptyVlaueValidValidator.class)
@Target({ElementType.FIELD, ElementType.PARAMETER})
@Retention(RetentionPolicy.RUNTIME)
public @interface CollectionHasNoEmptyVlaueValid {

	String message() default "参数值非法";

	Class[] groups() default {};

	Class<? extends Payload>[] payload() default {};

}
